<?php

namespace Addons\StoreSel;
use Common\Controller\Addon;

/**
 * 店铺选择器插件
 * @author Max.Yu <max@jipu.com>
 */

class StoreSelAddon extends Addon{

        public $info = array(
            'name'=>'StoreSel',
            'title'=>'店铺选择器',
            'description'=>'通用型店铺选择器',
            'status'=>1,
            'author'=>'ezhu',
            'version'=>'1.0'
        );

        public function install(){
            return true;
        }

        public function uninstall(){
            return true;
        }
    
    /**
     * 弹窗选择店铺钩子
     * @param array('name'=>'文本框名字')
     */
    public function StoreSel($param){
      $this->assign('param', $param);
      $this->display('widget');
    }
}